<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
        {% block title %}
        iPSmth Home Page
        {% endblock %}
    </title>
    <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>

    <style type="text/css" media="screen">@import "/media/iui/iui.css";</style>
    <style type="text/css" media="screen">@import "/media/stylesheets/iphone_new.css";</style>
    <script type="application/x-javascript" src="/media/iui/iui.js"></script>
    <script type="application/x-javascript">
        function toggleView(id) {
        	document.getElementById(id).value = ( document.getElementById(id).value == "True" ) ? "False" : "True";
            //alert(id+":"+document.getElementById(id).value);
        }
    </script>
</head>
<body onclick="console.log('iPSMTH', event.target);">
    <div class="toolbar">
        <h1 id="pageTitle"></h1>
        <a id="backButton" class="button" href="#"></a>
        <a class="button" href="#boardForm">讨论区</a>
    </div>

    <ul id="home" title="NewSMTH for iPhone" selected="true">
        <li><a href="/n/top10/">十大</a></li>
        <li><a href="/n/boards/">版面</a></li>
        {% if is_logged_in %}
        <li><a href="/n/settings/">配置</a></li>
        {% else %}
        <li><a href="{{login_url}}" target="_self">配置</a></li>
        {% endif %}
        <li><a href="/o/" target="_self">旧界面</a></li>
        
        <li><a href="/a/" target="_self">水木精简版_中转</a></li>
        <li><a href="/a/config/" target="_self">水木精简版_CSS配置</a></li>
        <li><a href="http://code.google.com/p/ipsmth" target="_self">Code</a></li>
        <!--
        <li><img src="http://chart.apis.google.com/chart?chs=150x150&cht=qr&choe=UTF-8&chl=http://ipsmth.appspot.com"/></li>
        -->
        <li>By ldmiao@newsmth</li>
    </ul>

    <form id="boardForm" name="boardForm" class="dialog" action="/n/bn/" method="POST">
        <fieldset>
            <h1>去往讨论区</h1>
            <a class="button leftButton" type="cancel">取消</a>
            <a class="button blueButton" type="submit">确定</a>

            <label>Board:</label>
            <input type="text" name="bn"/>
        </fieldset>
    </form>


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4049556-4");
pageTracker._trackPageview();
</script>
</body>
</html>
